function createTree()
{
    $('#loader').show();
    $("#treeview").treeview({
        collapsed: true,
        animated: "fast",
        persist: "cookie",
        control: "#treecontrols"
    });
}

$(document).ready(function(){
    $('#loader').show();
    $("#treeview").treeview({
        collapsed: true,
        animated: "fast",
        persist: "cookie",
        control: "#treecontrols"
    });
});
